package com.bdqn.t382.dao;

import com.bdqn.t382.entity.Pet;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

//@Resource(name = "petDaoMySQL")
//@Component("petDao")
@Repository(value = "petDaoMySQLImpl")
public class PetDaoMySQLImpl implements PetDao {
    @Override
    public int insert(Pet pet) {
        // 此处模拟插入数据，简化操作仅为说明问题
        System.out.println("将宠物“" + pet.getName() + "”插入到MySQL数据库");
        return 1;
    }
}
